﻿using System.Web.Optimization;

namespace QuanLyHocSinh
{
    public class BundleConfig
    {
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new StyleBundle("~/Bundles/css")
                .Include("~/Content/bootstrap.css")
                .Include("~/Content/css/select2.css")
                .Include("~/Content/css/themes/base/datepicker.css")
                .Include("~/Content/css/themes/base/autocomplete.css")
                .Include("~/Content/css/skins/skin-blue.min.css")
                .Include("~/Content/css/AdminLTE.css"));

            bundles.Add(new ScriptBundle("~/Bundles/js")
                .Include("~/Scripts/jquery-3.1.1.min.js")
                .Include("~/Scripts/jquery-ui-1.12.1.min.js")
                .Include("~/Scripts/jquery.validate.min.js")
                .Include("~/Scripts/jquery.validate.unobtrusive.min.js")
                .Include("~/Scripts/plugins/bootstrap/bootstrap.js")
                .Include("~/Scripts/plugins/fastclick/fastclick.js")
                .Include("~/Scripts/plugins/slimscroll/jquery.slimscroll.js")
                .Include("~/Scripts/plugins/select2/select2.full.js")
                .Include("~/Scripts/plugins/moment/moment.js")
                .Include("~/Scripts/plugins/icheck/icheck.js")
                .Include("~/Scripts/modernizr-2.8.3.js")
                .Include("~/Scripts/respond.min.js")
                .Include("~/Scripts/plugins/inputmask/jquery.inputmask.bundle.js")
                .Include("~/Scripts/app.js")
                .Include("~/Scripts/init.js"));

#if DEBUG
            BundleTable.EnableOptimizations = false;
#else
            BundleTable.EnableOptimizations = true;
#endif
        }
    }
}